﻿@model LoginAccountBM
@{
    ViewData["Title"] = "登录";
}

<div id="login_or_register_container">
    <form class="pure-form pure-form-aligned" asp-action="DoLogin" asp-controller="Account" method="post">
        <fieldset>
            <div class="pure-control-group">
                <label asp-for="Email"></label>
                <input asp-for="Email" placeholder="joey@163.com">
                <span asp-validation-for="Email"></span>
            </div>

            <div class="pure-control-group">
                <label asp-for="Password"></label>
                <input asp-for="Password" type="password" placeholder="123QWE!%^">
                <span asp-validation-for="Password"></span>
            </div>

            <input hidden="hidden" name="returnUrl" value="@ViewData["returnUrl"]" />

            <div class="pure-controls">
                <label for="cb" class="pure-checkbox">
                    <input id="cb" type="checkbox"> 记住密码
                </label>

                <button type="submit" class="pure-button pure-button-primary">登录</button>
            </div>

        </fieldset>
    </form>
    <div asp-validation-summary="All"></div>
    <div class="login_or_register_link">没有账号？点击<a asp-action="Register" asp-controller="Account">注册</a></div>
    <div class="cleanfloat"></div>
</div>

@section js{
    @await Html.PartialAsync("Partials/_ValidationScriptsPartial")
}

